/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class LiquidLevelSensor {
    static categoryCode = '010020018';

    static categoryName = '液位传感器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return LiquidLevelSensor.categoryCode;
    }

    get categoryName() {
        return LiquidLevelSensor.categoryName;
    }

    getAlarm(params) {
        return command({
            method: 'getAlarm',
            methodId: 'pghzWkXC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBuzzerStatus(params) {
        return command({
            method: 'getBuzzerStatus',
            methodId: 'pkp1X0wL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDensity(params) {
        return command({
            method: 'getDensity',
            methodId: 'pDrhEqyU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDepth(params) {
        return command({
            method: 'getDepth',
            methodId: 'pGox7xsP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHeight(params) {
        return command({
            method: 'getHeight',
            methodId: 'ptRSbsRr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLiquidLevelRatio(params) {
        return command({
            method: 'getLiquidLevelRatio',
            methodId: 'p3deL4ZZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPressure(params) {
        return command({
            method: 'getPressure',
            methodId: 'p1vFBbJw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRange(params) {
        return command({
            method: 'getRange',
            methodId: 'pz93pgMS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStandardDepth(params) {
        return command({
            method: 'getStandardDepth',
            methodId: 'pdN73uxd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTamperAlarm(params) {
        return command({
            method: 'getTamperAlarm',
            methodId: 'phEq1DQA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBuzzerStatus(params) {
        return command({
            method: 'setBuzzerStatus',
            methodId: 'ppAXijVl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHeight(params) {
        return command({
            method: 'setHeight',
            methodId: 'pUPQO3A5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRange(params) {
        return command({
            method: 'setRange',
            methodId: 'peHyqOkK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStandardDepth(params) {
        return command({
            method: 'setStandardDepth',
            methodId: 'pZgRtG5m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default LiquidLevelSensor;
